home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
mutt
/
max.mut
< prev
next >
Wrap
Lisp/Scheme
|
1988-09-23
|
235b
|
12 lines
;; max.mut : find the the maximum of a list of numbers
;; eg (max 1 2 3 4 5) returns 5
(defun max HIDDEN
{
(INT n)(int i)
(i (- (nargs) 1))(n (arg i))
(while (>= (-= i 1) 0) (if (< n (arg i)) (n (arg i))) )
n
})